﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuickTuner.Util
{
    public static class FrameworkExtensions
    {
        // a map function
        public static void ForEach<T>(this IEnumerable<T> @enum, Action<T> mapFunction)
        {
            foreach (var item in @enum) mapFunction(item);
        }

        // shorthand for string.Format
        public static string F(this string @string, params object[] args)
        {
            var theList = new List<List<string>>();
            var e = theList.AsEnumerable();
            

            return string.Format(@string, args);

        }
    }


}
